package model;

public class ServerResponse {
	private boolean success;
	private int dataType;
	private Object data;
	private String res;
	
	public ServerResponse(boolean suc, int type) {
		this.success = suc;
		this.dataType = type;
	}
	
	public void setData(Object o) {
		data = o;
	}
	
	public boolean isSuccessfull() {
		return success;
	}

	public int getDataType() {
		return dataType;
	}

	public Object getData() {
		return data;
	}

	public String getRes() {
		return res;
	}
	
	public String toString() { return null; }

	public void setRes(String res) {
		this.res = res;
	}
}
